/**
 * Copyright (c) 2017-2017 All Rights Reserved.
 */
package com.zbest.zpay.paycore.integration.exchange;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zbest.zpay.service.exchange.FinCardPayRequest;
import com.zbest.zpay.service.exchange.FinCardPayResponse;
import com.zbest.zpay.service.exchange.FinCardPayService;

/**
 * 
 *
 * @author Administrator
 * @version $Id: ExchangeClientImpl.java, v 0.1 2017-8-9 下午11:17:31 Administrator Exp $
 */
@Service("exchangeClient")
public class ExchangeClientImpl implements ExchangeClient {

    @Resource
    private FinCardPayService  finCardPayService;

    /** 
     * @see com.zbest.zpay.paycore.integration.exchange.ExchangeClient#exchange(com.zbest.zpay.service.exchange.FinCardPayRequest)
     */
    @Override
    public FinCardPayResponse exchange(FinCardPayRequest finCardPayRequest) {
        return finCardPayService.exchange(finCardPayRequest);
    }

    /** 
     * @see com.zbest.zpay.paycore.integration.exchange.ExchangeClient#instNotify(java.lang.String, java.util.Map)
     */
    @Override
    public FinCardPayResponse instNotify(String channelId, Map<String, Object> data) {
        return finCardPayService.instNotify(channelId, data);
    }
}
